package org.example.easybuy.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.easybuy.entity.News;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface NewsDao {
    List<News> selectByTitleAndDate(Map<String,Object> params);
    int deleteNewsById(int id);
    int updateNews(News news);
    News selectNewsById(int id);
    int addNews(News news);
    News selectByTitle(String title);
}
